﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

public enum movieStyle
{
    HORROR,
    ACTION,
    DRAME,
    COMEDIE,
    THRILLER,
    ANIMATION,
    AVENTURE,
    CATASTROPHE,
    FANTASTIQUE,
    SCIENCEFICTION,
    EROTIQUE,
    ESPIONNAGE,
    DOCUMENTAIRE,
    GUERRE,
    HISTORIQUE,
    MUSICAL,
    POLICIER,
    PRONOGRAPHGIQUE,
    ADO,
    ROMANCE,
    WESTERN,
    SUSPENSE
}

namespace myWindowsMediaPlayer.Model
{
    class movieModel : IEquatable<movieModel>
    {
        private string      path;
        private TimeSpan    duration;
        private int         notation;
        private int         years;
        private string      name;
        private movieStyle  kind;
        private int         id;

        public bool Equals(movieModel other)
        {
            string p = other.Path;
            string n = other.Name;

            if (p.Equals(this.path) == true || n.Equals(this.name) == true)
                return true;
            return false;
        }

        public string Path
        {
            get { return this.path; }
            set { this.path = value; }
        }

        public TimeSpan Duration
        {
            get { return this.duration; }
            set { this.duration = value; }
        }

        public int Notation
        {
            get { return this.notation; }
            set { this.notation = value; }
        }

        public int Years
        {
            get { return this.years; }
            set { this.years = value; }
        }

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public movieStyle Kind
        {
            get { return this.kind; }
            set { this.kind = value; }
        }

        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
    }
}
